Package-level declarations
Types
EN Pre-computed binary-search lookup table for ln(ar / 1.78f).
EN Global, lock-free, shared cache for all AppDimens dimension calculations.
EN Screen metric used to resolve Percent bounds (matches sdp / wdp / hdp axes).
EN One end of a resize range or the step granularity.
Properties
Functions
EN Provider that automatically computes and provides the UiModeType (including foldables) to all child components. Recommended for performance: without it, getCurrentUiModeType falls back to UiModeType.fromConfiguration on every *Mode / *Screen facilitator call. See the root README section Performance: DimenCache → Integration checklist.
EN Walks ContextWrapper chain to find the hosting Activity, if any. PT Percorre a cadeia de ContextWrapper para encontrar a Activity hospedeira, se existir.
EN Largest step in sortedStepsPx (ascending) for which fits returns true. If none fit, returns 0f.
EN Internal helper to get the UiModeType, falling back to computing it if not provided. PT Auxiliar interno para obter o UiModeType, recalculando se não for fornecido.
EN Layout stamp for androidx.compose.runtime.remember keys. Uses Configuration.hashCode which reflects actual content (densityDpi, locale, fontScale, orientation, etc.), ensuring correct recomposition when any configuration field changes.
EN layoutRememberStamp xor raw bits of Density.density and Density.fontScale for Px composable paths. PT layoutRememberStamp xor bits brutos de densidade e escala de fonte para caminhos Px.
EN % of Configuration.screenHeightDp.
EN % of Configuration.smallestScreenWidthDp. PT % do menor lado (sw).
EN % of Configuration.screenWidthDp.
EN Converts bound to px for layout/measure (density + font scale for sp).
EN Stamp equivalent to the former multi-key remember for com.appdimens.dynamic.compose.DimenScaled / com.appdimens.dynamic.compose.ScaledSp custom entry resolution. PT Carimbo equivalente ao antigo remember multi-chave para resolução de entradas customizadas.